<template>
  <h1>我们的第一个Vue组件Component - 文本指令</h1>
  <p v-text="info"></p>
  <h3>{{info}}</h3>
  <h4>{{info+'下午好'}}</h4>
  {{info}}
  <hr>
  <button @click="f">按钮</button>
  <hr>
  <p>{{count}}</p>
  <button @click="m">计数</button>
  <hr>
  <p>{{x}}</p>
  <p v-text="x"></p>
  <p v-html="x"></p>
</template>

<script setup>
import { ref } from 'vue'
const info = ref('我是info666');
const count = ref(0);
const f = () => {
  console.log(info.value);
  info.value = '一袋米要抗几楼！'
}
const m = () => {
  count.value++;
  console.log(count.value);
}
const x = ref('今天是星期三,今晚上有<mark>流星雨</mark>')











</script>

<style scoped>

</style>